package com.wwc.service.impl;

import com.wwc.entities.Payment;
import com.wwc.mapper.PaymentMapper;
import com.wwc.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl implements PaymentService{
	@Resource
	private PaymentMapper paymentMapper;
	
	@Override
	public int createPayment(Payment payment){
		return paymentMapper.createPayment(payment);
	}
	
	@Override
	public Payment getPaymentById(Long id){
		return paymentMapper.getPaymentById(id);
	}
}
